package com.iplay.实战java高并发程序设计.chapter5.c54;

import com.lmax.disruptor.WorkHandler;

/**
 * @author dangwu
 * @since 2021/11/5 3:18 下午
 */
public class Consumer implements WorkHandler<PCData> {
    @Override
    public void onEvent(PCData pcData) throws Exception {
        System.out.println(Thread.currentThread().getId() + ":Event: --" + pcData.getValue() * pcData.getValue() + "--");
    }
}
